package lab3p1;

/**
 * <p>Title: Example exception class for Lab #2</p>
 * <p>Description: 
 * This class is used in a CSIS 343 Lab on Exceptions
 *      and other topics
 * </p>
 * 
 * @author tony
 * @date  01.31.2010
 * @email anthony.varghese@uwrf.edu
 * @version 2
 *
 */
public class MyException extends Exception {
    /**
	 * Data members
	 */
	private static final long serialVersionUID = 1L;
	private String key;
    
	/**
	 * MyException default constructor
	 * 
	 */
	public MyException() {
	}

	public MyException(String arg0) {
		super(arg0);
	}

	public MyException(Throwable arg0) {
		super(arg0);
	}

	public MyException(String arg0, Throwable arg1) {
		super(arg0, arg1);
	}
	
	public MyException(String message, String k){
		super(message);
		key = new String( k );
	}

	public String getKey(){
		return key;
	}
}
